package com.imonsoft.sqm.service.sys;

import com.imonsoft.common.base.service.BaseService;
import com.imonsoft.sqm.pojo.sys.Function;
import com.imonsoft.sqm.pojo.sys.Role;

import java.util.List;

public interface RoleService extends BaseService<Role> {
	public void deleteRole(List<Long> idList);

	public List<Role> findRoleByCode(String code);

	public List<Role> getRoleListByFunctionId(Long functionId);

	public List<Function> getFunctionListByRoleId(Long roleId);

	public int deleteRoleFunctionByFunction(Long functionId);

	public int deleteRoleFunctionByRoleId(Long roleId);
}
